home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995…tember: Reference Library / Dev.CD Sep 95 RL / Dev.CD Sep 95 RL.toast / mac / Technical Documentation / develop / develop Issue 15 code / QD GX Shell / Symantec tips < prev   
Encoding:
Text File  |  1994-08-30  |  2.9 KB  |  61 lines  |  [TEXT/ttxt]

  1. This file…
  2. …is here to help you get started building the QuickDraw GX sample code using THINK C 6.0 or later.  It contains a some tips to help you on your way.  You'll probably be able to set things up on your own, but here's how to proceed if you're not quite sure what to do with all this stuff.
  3.  
  4.                   Setting up your development environment for THINK C
  5.  
  6. (All of the files mentioned here are in folders within the SDK CD's "Programming Stuff" folder.  The suggestions for renaming the folders are merely that-- the names are not critical.)
  7.  
  8. • Open the "QuickDraw™ GX Interfaces & Libs" folder.
  9.   Drag the folder "CIncludes" to your Think "Mac #includes" folder.
  10.   Rename this folder as "QuickDraw™ GX CIncludes."
  11.  
  12.   Drag the folder "RIncludes" to your Think "Mac #includes" folder.
  13.   Rename this folder as "QuickDraw™ GX RIncludes."
  14.  
  15. • Open the "QuickDraw™ GX Libraries" folder.
  16.   Drag the folder "CIncludes" to your Think "Mac #includes" folder.
  17.   Rename this folder as "QuickDraw™ GX Lib CIncludes."
  18.  
  19.   Drag the folders "Graphics Libraries" & "Printing Libraries" to your Think "Mac Libraries" folder.
  20.   Rename these folders as "QDGX Graphics Libraries" and "QDGX Printing Libraries"
  21.  
  22.  
  23.                                                                     Which universal interfaces?
  24.  
  25. For consistency, all samples on this CD were built using the Apple universal interfaces from ETO #15.  While the universal interfaces that Think provides will probably work as well, here's how to set up your interfaces as we did:
  26.  
  27. • Remove the "Apple #includes" folder from your Think "Mac #includes" folder.
  28.    You can just drag this to a higher level for safe keeping in case you want to revert to the Think interfaces for some
  29.    reason.
  30.  
  31. • Open the "ETO #15 MPW Interfaces" folder.
  32.   Drag the folder "CIncludes" to your Think "Mac #includes" folder.
  33.   Rename this folder as "ETO #15 CIncludes."
  34.  
  35.    Drag the folder "RIncludes" to your Think "Mac #includes" folder.
  36.    Rename this folder as "ETO #15 RIncludes."
  37.  
  38. • Open the "ETO #15 ColorSync Interfaces" folder.
  39.   Drag the folder "CIncludes" to your Think "Mac #includes" folder.
  40.   Rename this folder as "ETO #15 ColorSync CIncludes."
  41.  
  42.   Drag the folder "RIncludes" to your Think "Mac #includes" folder.
  43.   Rename this folder as "ETO #15 RIncludes."
  44.  
  45.  
  46.                                                                          Other requirements
  47.  
  48. You will also need to set the "Prefix" in your Think C options dialog.  Your prefix should be set to the following.  (For all Think C samples on this CD, a suitable prefix is already stored in the project files.)
  49.  
  50. #define debugging 1
  51.  
  52. // The following two typedef's are to work around a bug in the ETO #15
  53. // Universal headers -- the headers only typedef float_t and double_t
  54. // for "applec" and "powerc".  When this is eventually fixed, these
  55. // lines generate "redefined type" errors.
  56.  
  57.     typedef long double float_t;
  58.     typedef long double double_t;
  59.  
  60. a dmh  8/30/94 d
  61.